package com.syedu.day09;

/**
 * @Description
 * @createTime 2022/3/18 15:57
 * @author Administrator
 */
public class TestSingletonDemo {
    public static void main(String[] args) {
        //SingletonDemo demo1 = new SingletonDemo();
        //SingletonDemo demo2 = new SingletonDemo();

        SingletonDemo demo1 = SingletonDemo.getInstance();
        SingletonDemo demo2 = SingletonDemo.getInstance();
        System.out.println(demo1 == demo2);
    }
}
